const designCourse = {
  path: '/design',
  name: 'Designcourse',
  component: resolve => require(['@/views/creativeCourses/creativeCourses'], resolve),
  meta: {
    name: '设计系统',
    keepAlive: false,
    roles: [64]
  },
  // redirect: {
  //   name: 'coursesList'
  // },
  children: [
  // {
  //   path: 'list',
  //   name: 'coursesList',
  //   meta: {
  //     name: '正在设计',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/coursesList/coursesList'], resolve),    },
  // },
  // {
  //   path: 'submitted',
  //   name: 'courseSubmitted',
  //   meta: {
  //     name: '已经提交',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/courseSubmitted/courseSubmitted'], resolve),
  //   },
  // },
  // {
  //   path: 'published',
  //   name: 'coursePublished',
  //   meta: {
  //     name: '已经发布',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/coursePublished/coursePublished'], resolve),
  //   },
  // },
  // {
  //   path: 'template',
  //   name: 'CourseTemplate',
  //   meta: {
  //     name: '课程模板',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/courseTemplate/courseTemplate'], resolve),
  //   },
  // },
  // {
  //   path: 'browse',
  //   name: 'BrowseOtherCourse',
  //   meta: {
  //     name: '他人课程',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/browseOtherCourse/browseOtherCourse'], resolve),

  //   },
  // },
  // {
  //   path: 'delete',
  //   name: 'LatelyDelete',
  //   meta: {
  //     name: '最近删除',
  //     keepAlive: false,
  //   },
  //   components: {
  //     default: resolve => require(['@/views/creativeCourses/latelyDelete/latelyDelete'], resolve),    },
  // },
  {
    path: 'creative/:id',
    name: 'Creativeourse',
    meta: {
      name: '课程设计',
      keepAlive: true,
    },
    components: {
      default: resolve => require(['@/views/creativeCourses/creative/creative'], resolve),
    },
  },
  {
    path: 'detail',
    name: 'create_browseDetail',
    meta: {
      name: '浏览课程',
    },
    component: resolve => require(['@/views/courses/browseDetail/browseDetail'], resolve),
  },
  ]
}

export default designCourse